package com.estate.utils;

public class LawsUtil {

	public static int getLawsInt(String lawString){
		int law = 0;
		
		if("未发布".equals(lawString)){
			law = 1;
		}else if("已发布".equals(lawString)){
			law = 2;
		}
		
		return law;
	}
	
	public static String getLawsString(int lawInt){
		String law = "";
		
		if(lawInt == 1){
			law = "未发布";
		}else if(lawInt == 2){
			law = "已发布";
		}
		return law;
	}
}
